package com.ourteam.system.dao;

/**
 * Template Name : DAO数据对象
 * Template Version : 1
 * Template Last Modfiy Date : Fri Aug 18 15:51:23 CST 2017
 * Auto Generate Date : 2018-07-31 15:13:21
  * Warning ! This file will be overwrite when regenerate !
  *
 */
import org.apache.commons.lang.StringUtils;


public class SysRoleActionRelate implements java.io.Serializable {
    private long id;

    /**
     * Attribute id Be Seted Falg
     */
    private boolean idSetted = false;

    /**
    * Attribute id is Null Falg
    */
    private boolean idNull = false;
    private long actionId;

    /**
     * Attribute actionId Be Seted Falg
     */
    private boolean actionIdSetted = false;

    /**
    * Attribute actionId is Null Falg
    */
    private boolean actionIdNull = false;
    private String remarks;

    /**
     * Attribute remarks Be Seted Falg
     */
    private boolean remarksSetted = false;

    /**
    * Attribute remarks is Null Falg
    */
    private boolean remarksNull = false;
    private long roleId;

    /**
     * Attribute roleId Be Seted Falg
     */
    private boolean roleIdSetted = false;

    /**
    * Attribute roleId is Null Falg
    */
    private boolean roleIdNull = false;
    private String status;

    /**
     * Attribute status Be Seted Falg
     */
    private boolean statusSetted = false;

    /**
    * Attribute status is Null Falg
    */
    private boolean statusNull = false;
    private String actionCode;

    /**
     * Attribute actionCode Be Seted Falg
     */
    private boolean actionCodeSetted = false;

    /**
    * Attribute actionCode is Null Falg
    */
    private boolean actionCodeNull = false;
    private String actionName;

    /**
     * Attribute actionName Be Seted Falg
     */
    private boolean actionNameSetted = false;

    /**
    * Attribute actionName is Null Falg
    */
    private boolean actionNameNull = false;
    private long domainId;

    /**
     * Attribute domainId Be Seted Falg
     */
    private boolean domainIdSetted = false;

    /**
    * Attribute domainId is Null Falg
    */
    private boolean domainIdNull = false;
    private String domainCode;

    /**
     * Attribute domainCode Be Seted Falg
     */
    private boolean domainCodeSetted = false;

    /**
    * Attribute domainCode is Null Falg
    */
    private boolean domainCodeNull = false;
    private String domainName;

    /**
     * Attribute domainName Be Seted Falg
     */
    private boolean domainNameSetted = false;

    /**
    * Attribute domainName is Null Falg
    */
    private boolean domainNameNull = false;

    public SysRoleActionRelate() {
        super();
    }

    /**
         * Get id
         *
         * @return long
         */
    final public long getId() {
        return id;
    }

    /**
     * Set id
     *
     * @param long
     */
    final public void setId(long id) {
        this.id = id;

        this.idSetted = true;

        this.setIdNull(false);
    }

    /**
     * Get id Has Been Setted
     *
     * @return boolean
     */
    final public boolean isIdSetted() {
        return this.idSetted;
    }

    /**
     * Set id Null
     *
     */
    final public void setIdNull() {
        this.idNull = true;
    }

    final public void setIdNull(boolean aNullFlag) {
        this.idNull = aNullFlag;
    }

    final public boolean isIdNull() {
        return this.idNull;
    }

    /**
         * Get actionId
         *
         * @return long
         */
    final public long getActionId() {
        return actionId;
    }

    /**
     * Set actionId
     *
     * @param long
     */
    final public void setActionId(long actionId) {
        this.actionId = actionId;

        this.actionIdSetted = true;

        this.setActionIdNull(false);
    }

    /**
     * Get actionId Has Been Setted
     *
     * @return boolean
     */
    final public boolean isActionIdSetted() {
        return this.actionIdSetted;
    }

    /**
     * Set actionId Null
     *
     */
    final public void setActionIdNull() {
        this.actionIdNull = true;
    }

    final public void setActionIdNull(boolean aNullFlag) {
        this.actionIdNull = aNullFlag;
    }

    final public boolean isActionIdNull() {
        return this.actionIdNull;
    }

    /**
         * Get remarks
         *
         * @return String
         */
    final public String getRemarks() {
        if (isRemarksNull()) {
            return null;
        } else {
            return StringUtils.trim(remarks);
        }
    }

    /**
     * Set remarks
     *
     * @param String
     */
    final public void setRemarks(String remarks) {
        this.remarks = StringUtils.trim(remarks);

        this.remarksSetted = true;

        this.setRemarksNull(this.remarks == null);
    }

    /**
     * Get remarks Has Been Setted
     *
     * @return boolean
     */
    final public boolean isRemarksSetted() {
        return this.remarksSetted;
    }

    /**
     * Set remarks Null
     *
     */
    final public void setRemarksNull() {
        this.remarksNull = true;
    }

    final public void setRemarksNull(boolean aNullFlag) {
        this.remarksNull = aNullFlag;
    }

    final public boolean isRemarksNull() {
        return this.remarksNull;
    }

    /**
         * Get roleId
         *
         * @return long
         */
    final public long getRoleId() {
        return roleId;
    }

    /**
     * Set roleId
     *
     * @param long
     */
    final public void setRoleId(long roleId) {
        this.roleId = roleId;

        this.roleIdSetted = true;

        this.setRoleIdNull(false);
    }

    /**
     * Get roleId Has Been Setted
     *
     * @return boolean
     */
    final public boolean isRoleIdSetted() {
        return this.roleIdSetted;
    }

    /**
     * Set roleId Null
     *
     */
    final public void setRoleIdNull() {
        this.roleIdNull = true;
    }

    final public void setRoleIdNull(boolean aNullFlag) {
        this.roleIdNull = aNullFlag;
    }

    final public boolean isRoleIdNull() {
        return this.roleIdNull;
    }

    /**
         * Get status
         *
         * @return String
         */
    final public String getStatus() {
        if (isStatusNull()) {
            return null;
        } else {
            return StringUtils.trim(status);
        }
    }

    /**
     * Set status
     *
     * @param String
     */
    final public void setStatus(String status) {
        this.status = StringUtils.trim(status);

        this.statusSetted = true;

        this.setStatusNull(this.status == null);
    }

    /**
     * Get status Has Been Setted
     *
     * @return boolean
     */
    final public boolean isStatusSetted() {
        return this.statusSetted;
    }

    /**
     * Set status Null
     *
     */
    final public void setStatusNull() {
        this.statusNull = true;
    }

    final public void setStatusNull(boolean aNullFlag) {
        this.statusNull = aNullFlag;
    }

    final public boolean isStatusNull() {
        return this.statusNull;
    }

    /**
         * Get actionCode
         *
         * @return String
         */
    final public String getActionCode() {
        if (isActionCodeNull()) {
            return null;
        } else {
            return StringUtils.trim(actionCode);
        }
    }

    /**
     * Set actionCode
     *
     * @param String
     */
    final public void setActionCode(String actionCode) {
        this.actionCode = StringUtils.trim(actionCode);

        this.actionCodeSetted = true;

        this.setActionCodeNull(this.actionCode == null);
    }

    /**
     * Get actionCode Has Been Setted
     *
     * @return boolean
     */
    final public boolean isActionCodeSetted() {
        return this.actionCodeSetted;
    }

    /**
     * Set actionCode Null
     *
     */
    final public void setActionCodeNull() {
        this.actionCodeNull = true;
    }

    final public void setActionCodeNull(boolean aNullFlag) {
        this.actionCodeNull = aNullFlag;
    }

    final public boolean isActionCodeNull() {
        return this.actionCodeNull;
    }

    /**
         * Get actionName
         *
         * @return String
         */
    final public String getActionName() {
        if (isActionNameNull()) {
            return null;
        } else {
            return StringUtils.trim(actionName);
        }
    }

    /**
     * Set actionName
     *
     * @param String
     */
    final public void setActionName(String actionName) {
        this.actionName = StringUtils.trim(actionName);

        this.actionNameSetted = true;

        this.setActionNameNull(this.actionName == null);
    }

    /**
     * Get actionName Has Been Setted
     *
     * @return boolean
     */
    final public boolean isActionNameSetted() {
        return this.actionNameSetted;
    }

    /**
     * Set actionName Null
     *
     */
    final public void setActionNameNull() {
        this.actionNameNull = true;
    }

    final public void setActionNameNull(boolean aNullFlag) {
        this.actionNameNull = aNullFlag;
    }

    final public boolean isActionNameNull() {
        return this.actionNameNull;
    }

    /**
         * Get domainId
         *
         * @return long
         */
    final public long getDomainId() {
        return domainId;
    }

    /**
     * Set domainId
     *
     * @param long
     */
    final public void setDomainId(long domainId) {
        this.domainId = domainId;

        this.domainIdSetted = true;

        this.setDomainIdNull(false);
    }

    /**
     * Get domainId Has Been Setted
     *
     * @return boolean
     */
    final public boolean isDomainIdSetted() {
        return this.domainIdSetted;
    }

    /**
     * Set domainId Null
     *
     */
    final public void setDomainIdNull() {
        this.domainIdNull = true;
    }

    final public void setDomainIdNull(boolean aNullFlag) {
        this.domainIdNull = aNullFlag;
    }

    final public boolean isDomainIdNull() {
        return this.domainIdNull;
    }

    /**
         * Get domainCode
         *
         * @return String
         */
    final public String getDomainCode() {
        if (isDomainCodeNull()) {
            return null;
        } else {
            return StringUtils.trim(domainCode);
        }
    }

    /**
     * Set domainCode
     *
     * @param String
     */
    final public void setDomainCode(String domainCode) {
        this.domainCode = StringUtils.trim(domainCode);

        this.domainCodeSetted = true;

        this.setDomainCodeNull(this.domainCode == null);
    }

    /**
     * Get domainCode Has Been Setted
     *
     * @return boolean
     */
    final public boolean isDomainCodeSetted() {
        return this.domainCodeSetted;
    }

    /**
     * Set domainCode Null
     *
     */
    final public void setDomainCodeNull() {
        this.domainCodeNull = true;
    }

    final public void setDomainCodeNull(boolean aNullFlag) {
        this.domainCodeNull = aNullFlag;
    }

    final public boolean isDomainCodeNull() {
        return this.domainCodeNull;
    }

    /**
         * Get domainName
         *
         * @return String
         */
    final public String getDomainName() {
        if (isDomainNameNull()) {
            return null;
        } else {
            return StringUtils.trim(domainName);
        }
    }

    /**
     * Set domainName
     *
     * @param String
     */
    final public void setDomainName(String domainName) {
        this.domainName = StringUtils.trim(domainName);

        this.domainNameSetted = true;

        this.setDomainNameNull(this.domainName == null);
    }

    /**
     * Get domainName Has Been Setted
     *
     * @return boolean
     */
    final public boolean isDomainNameSetted() {
        return this.domainNameSetted;
    }

    /**
     * Set domainName Null
     *
     */
    final public void setDomainNameNull() {
        this.domainNameNull = true;
    }

    final public void setDomainNameNull(boolean aNullFlag) {
        this.domainNameNull = aNullFlag;
    }

    final public boolean isDomainNameNull() {
        return this.domainNameNull;
    }

    public int hashCode() {
        final int prime = 31;
        int result = 1;

        result = (prime * result) + (int) (getId() ^ (getId() >>> 32));

        return result;
    }

    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }

        if ((obj instanceof SysRoleActionRelate) == false) {
            return false;
        }

        SysRoleActionRelate other = (SysRoleActionRelate) obj;

        if (getId() != other.getId()) {
            return false;
        }

        return true;
    }

    public String toString() {
        StringBuffer buffer = new StringBuffer();

        buffer.append("[");

        buffer.append("id=");
        buffer.append(this.id);

        buffer.append("actionId=");
        buffer.append(this.actionId);

        buffer.append("remarks=");
        buffer.append(this.remarks);

        buffer.append("roleId=");
        buffer.append(this.roleId);

        buffer.append("status=");
        buffer.append(this.status);

        buffer.append("actionCode=");
        buffer.append(this.actionCode);

        buffer.append("actionName=");
        buffer.append(this.actionName);

        buffer.append("domainId=");
        buffer.append(this.domainId);

        buffer.append("domainName=");
        buffer.append(this.domainName);

        buffer.append("domainCode=");
        buffer.append(this.domainCode);

        buffer.append("]");

        return buffer.toString();
    }
}
